/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package service;
import java.util.List;
import myUtils.page.Result;
import po.News;
/**
 *
 * @author sony
 */
public interface NewsService {

    public Result getAllNews(int page);
    void addNews(News news);
    News getNews(int id);
    void deleteNews(int id);
    List getLatestNews(int n);
    boolean isAuthor(int newsId,int userId);
    void updateNews(News news);
}
